<%- include ../common/header %>
<!-- 头部  -->
<div id="loadingDiv" class="loader"></div>
<div class="common_header" style="position:fixed">
	<a href="/find" class="back"><img src="/images/back.png" alt=""/></a>
	<h3 class="title" id="heade_title"></h3>
</div>
<iframe marginheigh="52" width="100%" id="srchref" frameborder="0" src="" class="load" style="margin-top:4.6rem;">
</iframe>
<%- include ../common/footer %>
<script type="text/javascript" src="/js/libs/jquery-1.11.3.min.js"></script>
<script>
		var oMeta = document.getElementsByTagName('meta')[7];    //第二个
      	oMeta.content = "";
      	console.log(oMeta.content);
	function GetQueryString(name) {  
	    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");  
	    var r = window.location.search.substr(1).match(reg);  //获取url中"?"符后的字符串并正则匹配
	    var context = "";  
	    if (r != null)  
	         context = r[2];  
	    reg = null;  
	    r = null;  
	    return context == null || context == "" || context == "undefined" ? "" : context;  
	}
	
	function GetsingleHeight(){
		//var height = window.screen.height;
		var width = window.innerWidth;
		var height = window.innerHeight;
		if(width >= 600){
			var relHeight = height - 70;
		}else{
			var relHeight = height - 52;
		}
		return relHeight;
		
	}
	var height = GetsingleHeight();
	$('.load').css('height',height);
	var url = '';
	var type = GetQueryString('fromUrl');
	var title = ''
	if(type=="zixun"){
		url = 'http://www.ksbao.com/';
		title = '资讯';
	}else if(type=="product"){
		url = 'http://soft.ksbao.com/';
		title = '产品';
	}
	$('#heade_title').html(title); 
	$('#loadingDiv').css('display','none');
	document.getElementById('srchref').src = url;
</script>